import request from '@/utils/request'
export default {
    getList(query) {
        return request({
            url: `/system/menu/search`,
            method: 'post',
            data: query
        })
    },
    add(data) {
        return request({
            url: `/system/menu`,
            method: 'post',
            data
        })
    },
    getById(id) {
        return request({
            url: `/system/menu/${id}`,
            method: 'get',

        })
    },
    update(data) {
        return request({
            url: `/system/menu`,
            method: 'put',
            data
        })
    },
    delete(id) {
        return request({
            url: `/system/menu/${id}`,
            method: 'delete',
        })
    }
}